package cn.ilikes.tools.nosql.jpa.metadatas.elements;

/**
 * Entity 建不建索引
 * 
 * @author fack
 * 
 */
public class EntityIndex {

	private boolean indexable;

	private String indexName;

	public EntityIndex(boolean indexable) {
		super();
		this.indexable = indexable;
	}

	public EntityIndex() {
		this.indexable = true;
	}

	public boolean isIndexable() {

		return indexable;
	}

	public String getIndexName() {

		return indexName;
	}

	public void setIndexable(boolean indexable) {
		this.indexable = indexable;
	}

	public void setIndexName(String indexName) {
		this.indexName = indexName;
	}

}
